﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Subsidiary.CouponWrapper
{
  public  class CouponWrapperFactory
    {
      public static ICouponWrapper Create(string siteCode)
      {
          switch (siteCode)
          {
              case "dangdang":
                  return new DangDangCouponWrapper();
              case "360buy":
                  return new JingDongCouponWrapper();
              case "1haodian":
                  return new YiHaoDianCouponWrapper();
              case "vancl":
                  return new VanclCouponWrapper();
              case "vjia":
                  return new VjiaCouponWrapper();
              default:
                  break;
          }
          return new EmptyCouponWrapper();
      }
    }
}
